import demo1.A;

public class Main {
    public static void main(String[] args) {
        Cat cat = new Cat("1",2,"3");
    }
}
class Animal{
    String name;
    int age;

    public  Animal(String name, int age){
        this.name=name;
        this.age=age;
    }

    public Animal() {

    }

    public void eat(){
        System.out.println("吃饭");
    }

    public void sleep(){
        System.out.println("睡觉");
    }


}

class Cat extends Animal {
    String color;

    public Cat() {
    }

    public Cat(String name, int age, String color) {
        super(name,age);
        this.color = color;
    }

    public void meow(){
        System.out.println("喵喵");
    }
}

class Dog extends Animal{
    String breed;

    public Dog() {
    }

    public Dog(String name, int age, String breed) {
        super(name,age);
        this.breed=breed;
    }

    public void bark(){
        System.out.println("汪汪叫");
    }
}